package org.yangspring.samples.mvc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.yangspring.samples.mvc.dao.WhyangbankDAOImpl;
import org.yangspring.samples.mvc.domain.WhyangBank;

import java.util.List;

/**
 * Created by whyang on 2017/06/20.
 */

@Service
public class WhyangbankServiceImpl implements WhyangbankService {

    @Autowired
    private WhyangbankDAOImpl bankDao;

    /*@Autowired
    public void setBankDao(WhyangbankDAOImpl bankDao){
        this.bankDao = bankDao;
    }*/

    @Transactional
    public List<WhyangBank> listAccount(){
        return this.bankDao.listAccount();
    }

}
